package CollectionDemo;

import java.util.PriorityQueue;
import java.util.Queue;

public class PriorityQueueDemo {
    public static void main(String[] args) {
        Queue queue = new PriorityQueue();
        queue.offer(6);
        queue.offer(-3);
        queue.offer(9);
        queue.offer(0);
        System.out.println(queue);
        System.out.println(queue.poll());
    }
}
